onUpdateServer

abstract fun onUpdateServer(listener: OnUpdateServerListener)

Registers a listener to the global onChangedServer event. This will be fired on the logical server after an updated config is prepared for saving.

Typically, this will be after a config update is received from a connected client, and that update passes permission checks.

Author

fzzyhmstrs

Since

0.7.4

Parameters

listener

OnUpdateServerListener callback that is fired when any config is updated on the server side. This can be used to inspect other configs, not just your own.

See also

A direct-implementation option for inspecting your own config on change.


abstract fun onUpdateServer(listener: OnUpdateServerListener)

Deprecated

Scheduled for removal 0.9.0. Will stop functioning by 0.8.0. Will not crash in 0.8.0, but will not be wired in any more. Replace with the version that uses a V2 input. This may not be called in all cases, potentially skipping needed events

USE THE OTHER OVERLOAD

Registers a listener to the global onChangedServer event. This will be fired on the logical server after an updated config is prepared for saving.

Typically, this will be after a config update is received from a connected client, and that update passes permission checks.

Author

fzzyhmstrs

Since

0.5.0, deprecated 0.7.4, soft-removal by 0.8.0, removal by 0.9.0

Parameters

listener

OnUpdateServerListener callback that is fired when any config is updated on the server side. This can be used to inspect other configs, not just your own.

See also

A direct-implementation option for inspecting your own config on change.